--[[boss伤害增加]]

---@class BuffEffect90011000 : BaseBuffEffect
BuffEffect90011000 = ClientFight.CreateClass("BuffEffect90011000", ClientFight.BaseBuffEffect)
local t = BuffEffect90011000
t.BUFF_EFFECT_90011000_DAMAGE = "BUFF_EFFECT_90011000_DAMAGE";
---@param fight Fight
---@param buff FighterBuff
function t:action(fight, buff, ...)
    local parameters = {...};
    local fr = parameters[3];
    if (fr:isDamage()) then
        local damage = buff.effectParams[t.BUFF_EFFECT_90011000_DAMAGE] or 0;
        damage = damage + fr.damage;
        buff.effectParams[t.BUFF_EFFECT_90011000_DAMAGE] = damage;

        local attack = 0;
        local effectValue = buff.buffBean.f_BuffEffectValueTemp;
        for i = 1, table.getn(effectValue), 2 do
            if (effectValue[i] > damage) then
                break ;
            end
            attack = effectValue[i + 1];
        end
        if (attack > 0) then
            buff.attributes.attributes[FighterAttributeEnum.ATK.id] = attack;
        end
    end
    return ClientFight.BaseBuffEffect.action(self, fight, buff, ...);
end

t.New()